const http = require('http')
const fs = require('fs')
const url = require('url')
const path = require('path')
let minedata = require('./mine.json')


const server = http.createServer((req, res) => {
   // console.log(req.url);
    var urlRes = url.parse(req.url, true)
    console.log(urlRes);
    let pathname=urlRes.pathname// /index
    
    res.end()
    
})
server.listen(5566)